<!-- HTML header for doxygen 1.8.13-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Open SCA: runtime_env/rte_utils/include/rte_debug.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="customdoxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><a href="http://www.onetek.net"><img alt="Logo" src="openscaLogo.png"/></a></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Open SCA
   &#160;<span id="projectnumber">Version 0.6.0</span>
   </div>
   <div id="projectbrief">Open SCA</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('rte__debug_8h.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#define-members">Macros</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">rte_debug.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>:   
<a href="#details">More...</a></p>
<div class="textblock"><code>#include &lt;sys/types.h&gt;</code><br />
<code>#include &lt;unistd.h&gt;</code><br />
<code>#include &lt;errno.h&gt;</code><br />
<code>#include &lt;iostream&gt;</code><br />
<code>#include &lt;boost/interprocess/managed_shared_memory.hpp&gt;</code><br />
</div><div class="textblock"><div class="dynheader">
Include dependency graph for rte_debug.h:</div>
<div class="dyncontent">
<div class="center"><img src="rte__debug_8h__incl.png" border="0" usemap="#runtime__env_2rte__utils_2include_2rte__debug_8h" alt=""/></div>
<map name="runtime__env_2rte__utils_2include_2rte__debug_8h" id="runtime__env_2rte__utils_2include_2rte__debug_8h">
</map>
</div>
</div><div class="textblock"><div class="dynheader">
This graph shows which files directly or indirectly include this file:</div>
<div class="dyncontent">
<div class="center"><img src="rte__debug_8h__dep__incl.png" border="0" usemap="#runtime__env_2rte__utils_2include_2rte__debug_8hdep" alt=""/></div>
<map name="runtime__env_2rte__utils_2include_2rte__debug_8hdep" id="runtime__env_2rte__utils_2include_2rte__debug_8hdep">
</map>
</div>
</div>
<p><a href="rte__debug_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:a5ed77f7e2b4bdd0a5e7f8303f27bd2b1"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="rte__debug_8h.html#a5ed77f7e2b4bdd0a5e7f8303f27bd2b1">RTE_DEBUG_LEVEL_ID</a>&#160;&#160;&#160;(&quot;rteDebugLevelId&quot;)</td></tr>
<tr class="memdesc:a5ed77f7e2b4bdd0a5e7f8303f27bd2b1"><td class="mdescLeft">&#160;</td><td class="mdescRight">level ~= 0, when openscaDebugLevel=0, nothing debug info print level = 1: key step, such as launch domain/devicemanager/namingService/logservice, create app, unload app level = 2: secondary key step, such as launch devices, and exception in runtime level = 3: the interface defined in SCA level = 4: the user-defined interface, be used to test level = 5: undefined  <a href="#a5ed77f7e2b4bdd0a5e7f8303f27bd2b1">More...</a><br /></td></tr>
<tr class="separator:a5ed77f7e2b4bdd0a5e7f8303f27bd2b1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a20b39e37e6bab08c0b2b8b74d494ab99"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="rte__debug_8h.html#a20b39e37e6bab08c0b2b8b74d494ab99">SCA_SHM</a>&#160;&#160;&#160;(&quot;sca_shm&quot;)</td></tr>
<tr class="separator:a20b39e37e6bab08c0b2b8b74d494ab99"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a76d5c6075ac9d681bb3b3a6a5aace282"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="rte__debug_8h.html#a76d5c6075ac9d681bb3b3a6a5aace282">RTE_DEBUG</a>(level,  title,  debuginfo)</td></tr>
<tr class="separator:a76d5c6075ac9d681bb3b3a6a5aace282"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a5ba674683996ff5ce15dba6722992d18"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="rte__debug_8h.html#a5ba674683996ff5ce15dba6722992d18">setDebugLevel</a> (std::string debugId, int level)</td></tr>
<tr class="memdesc:a5ba674683996ff5ce15dba6722992d18"><td class="mdescLeft">&#160;</td><td class="mdescRight">configure debug level.  <a href="#a5ba674683996ff5ce15dba6722992d18">More...</a><br /></td></tr>
<tr class="separator:a5ba674683996ff5ce15dba6722992d18"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4a867d110828c043ddac4ab31c119090"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="rte__debug_8h.html#a4a867d110828c043ddac4ab31c119090">getDebugLevel</a> (std::string debugId)</td></tr>
<tr class="memdesc:a4a867d110828c043ddac4ab31c119090"><td class="mdescLeft">&#160;</td><td class="mdescRight">configure debug level.  <a href="#a4a867d110828c043ddac4ab31c119090">More...</a><br /></td></tr>
<tr class="separator:a4a867d110828c043ddac4ab31c119090"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa34b0c33129934665e82b796c17c8e06"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="rte__debug_8h.html#aa34b0c33129934665e82b796c17c8e06">set_rte_debug_level</a> (int level)</td></tr>
<tr class="separator:aa34b0c33129934665e82b796c17c8e06"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>:  </p>
<dl class="section author"><dt>Author</dt><dd>open Team </dd></dl>
<dl class="section version"><dt>Version</dt><dd>9 </dd></dl>
<dl class="section date"><dt>Date</dt><dd>2017-03-16 <pre class="fragment">* ==============================================================================
* &lt;Date&gt;     | &lt;Version&gt; | &lt;Author&gt;       | &lt;Description&gt;
* ==============================================================================
*  2015-05-23 | 1       | open Team       | Create file
* ==============================================================================
* </pre> <hr/>
 <h2><center>&copy; Copyright(c)2015-2025 JFounder Info Tech Co.,Ltd</center></h2>
</dd></dl>
<p>All rights reserved. The right to copy, distribute, modify or otherwise make use of this software may be licensed only pursuant to the terms of an applicable JFounder license agreement. Company website: www.onetek.net </p>

<p>Definition in file <a class="el" href="rte__debug_8h_source.html">rte_debug.h</a>.</p>
</div><h2 class="groupheader">Macro Definition Documentation</h2>
<a class="anchor" id="a76d5c6075ac9d681bb3b3a6a5aace282"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define RTE_DEBUG</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">level, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">title, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">debuginfo&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<b>Value:</b><div class="fragment"><div class="line"><span class="keywordflow">if</span>(level &lt;= <a class="code" href="rte__debug_8h.html#a4a867d110828c043ddac4ab31c119090">getDebugLevel</a>(<a class="code" href="rte__debug_8h.html#a5ed77f7e2b4bdd0a5e7f8303f27bd2b1">RTE_DEBUG_LEVEL_ID</a>))\</div><div class="line">                std::cout &lt;&lt; <span class="stringliteral">&quot;PID:&quot;</span> &lt;&lt; getpid() &lt;&lt; <span class="stringliteral">&quot;  &quot;</span> &lt;&lt; #title &lt;&lt; <span class="stringliteral">&quot;:&quot;</span> &lt;&lt; debuginfo &lt;&lt; std::endl;</div><div class="ttc" id="rte__debug_8h_html_a5ed77f7e2b4bdd0a5e7f8303f27bd2b1"><div class="ttname"><a href="rte__debug_8h.html#a5ed77f7e2b4bdd0a5e7f8303f27bd2b1">RTE_DEBUG_LEVEL_ID</a></div><div class="ttdeci">#define RTE_DEBUG_LEVEL_ID</div><div class="ttdoc">level ~= 0, when openscaDebugLevel=0, nothing debug info print level = 1: key step, such as launch domain/devicemanager/namingService/logservice, create app, unload app level = 2: secondary key step, such as launch devices, and exception in runtime level = 3: the interface defined in SCA level = 4: the user-defined interface, be used to test level = 5: undefined </div><div class="ttdef"><b>Definition:</b> <a href="rte__debug_8h_source.html#l00040">rte_debug.h:40</a></div></div>
<div class="ttc" id="rte__debug_8h_html_a4a867d110828c043ddac4ab31c119090"><div class="ttname"><a href="rte__debug_8h.html#a4a867d110828c043ddac4ab31c119090">getDebugLevel</a></div><div class="ttdeci">int getDebugLevel(std::string debugId)</div><div class="ttdoc">configure debug level. </div></div>
</div><!-- fragment -->
<p>Definition at line <a class="el" href="rte__debug_8h_source.html#l00067">67</a> of file <a class="el" href="rte__debug_8h_source.html">rte_debug.h</a>.</p>

</div>
</div>
<a class="anchor" id="a5ed77f7e2b4bdd0a5e7f8303f27bd2b1"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define RTE_DEBUG_LEVEL_ID&#160;&#160;&#160;(&quot;rteDebugLevelId&quot;)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>level ~= 0, when openscaDebugLevel=0, nothing debug info print level = 1: key step, such as launch domain/devicemanager/namingService/logservice, create app, unload app level = 2: secondary key step, such as launch devices, and exception in runtime level = 3: the interface defined in SCA level = 4: the user-defined interface, be used to test level = 5: undefined </p>

<p>Definition at line <a class="el" href="rte__debug_8h_source.html#l00040">40</a> of file <a class="el" href="rte__debug_8h_source.html">rte_debug.h</a>.</p>

</div>
</div>
<a class="anchor" id="a20b39e37e6bab08c0b2b8b74d494ab99"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define SCA_SHM&#160;&#160;&#160;(&quot;sca_shm&quot;)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="rte__debug_8h_source.html#l00041">41</a> of file <a class="el" href="rte__debug_8h_source.html">rte_debug.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="a4a867d110828c043ddac4ab31c119090"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int getDebugLevel </td>
          <td>(</td>
          <td class="paramtype">std::string&#160;</td>
          <td class="paramname"><em>debugId</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>configure debug level. </p>
<dl class="section return"><dt>Returns</dt><dd>debug level </dd></dl>

</div>
</div>
<a class="anchor" id="aa34b0c33129934665e82b796c17c8e06"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void set_rte_debug_level </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>level</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a5ba674683996ff5ce15dba6722992d18"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void setDebugLevel </td>
          <td>(</td>
          <td class="paramtype">std::string&#160;</td>
          <td class="paramname"><em>debugId</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>level</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>configure debug level. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">debugId</td><td>debug type </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">level</td><td>debug level </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- HTML footer for doxygen 1.8.13-->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_f225e4d86008d3e73336a06c8611e2b4.html">runtime_env</a></li><li class="navelem"><a class="el" href="dir_8f9a475dbd6b925c5ec1184392d41305.html">rte_utils</a></li><li class="navelem"><a class="el" href="dir_8a3d4f0e83014ff517f4732af5005de4.html">include</a></li><li class="navelem"><a class="el" href="rte__debug_8h.html">rte_debug.h</a></li>
    <li class="footer">Generated on Fri Jul 12 2019 14:31:54 for
    <a href="http://www.onetek.net">
    <img class="footer" src="openscaLogo.png" height="31" alt="openSCA"/></a>
    </li>
  </ul>
</div>
</body>
</html>
